package com.yetianhua.executor;

import com.yetianhua.pojo.Configuration;
import com.yetianhua.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @author yetianhua
 * @className Executor
 * @description TODO
 * @date 2021/6/2
 * @time 20:30
 */
public interface Executor {

    public <T> List<T> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

    public int updateOrDelete(Configuration configuration, MappedStatement mappedStatement, Object... param) throws SQLException, Exception;
}
